@media (max-width: 768px) {
    .left {
        width: 100%;
        height: 40px;
    }

    .middle {
        width: 100%;
        height: 400px;
        z-index: 1;
    }

    .right {
        width: 100%;
    }

    .right > div {
        width: 100%;
        padding: 10px;
    }

    .right-artical p {
        font-size: 15px;
        font-weight: 100;
        line-height: 30px;
        font-family: "Microsoft YaHei";
    }
}

@media (min-width: 768px) {
    .left {
        background-color: #161616;
        width: 3%;
        position: fixed;
        height: 100%;
        float: left;
        z-index: 2;
    }

    .middle {
        position: fixed;
        left: 3%;
        width: 20%;
        height: 100%;
        background-color: #161616;
        float: left;
        border-right: 1px solid #2f2f2f;
    }

    .right {
        position: absolute;
        width: 77%;
        left: 23%;
        height: 100%;
    }

    .right > div {
        width: 100%;
        padding: 40px;
    }

    .foreword {
        font-size: 18px;
        font-weight: 100;
        line-height: 30px;
        font-family: "Microsoft YaHei";
    }
}

* {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.hidden {
    display: none;
}

.active {
    display: block;
}

html, body, .frame {
    background-color: #f0f0f0;
    height: 100%;
    width: 100%;
}

.middle div {
    position: relative;
    text-align: center;
    top: 60px;
}

#avatar {
    height: 100px;
    width: 100px;
    border-radius: 100px;
}

.username {
    margin-top: 10px;
    font-size: 24px;
    font-family: "Microsoft YaHei";
}

.intro {
    margin: 0 10px;
    font-size: 14px;
    font-family: "Microsoft YaHei";
}

.statistics {
    margin: 0;
    padding: 0;
}

.statistics li {
    display: inline-block;
    margin: 10px;
}

.statistics li a, .statistics li b, .right-nav li a {
    display: block;
    font-size: 16px;
    font-weight: normal;
    text-decoration: none;
}

.line {
    height: 2px;
    width: 100%;
    background-color: #d9d9d9;
}

.right-nav {
    margin-bottom: 0px;
}

.right-nav li {
    display: inline-block;
    margin: 0px 10px -2px 0px;
    padding: 6px;
    cursor: pointer;
}

.right-nav .active {
    border-bottom: 2px solid black;
}

.right-nav li a {
    color: black;
    font-family: "Microsoft YaHei";
    font-size: 20px;
}

.right-article li {
    list-style: none;
    padding: 20px 0;
    border-bottom: 1px solid #e1e1e1;
}

.right-article a {
    text-decoration: none;
    cursor: pointer;
}

.title {
    display: block;
    margin-bottom: 6px;
    font-size: 30px;
    font-weight: bold;
    line-height: 40px;
    color: black;
    font-family: "Microsoft YaHei";
}

.artical-info a {
    margin: 0 10px 0 0;
}

.left ul li {
    width: 100%;
    height: 30px;
    margin: 40px auto;
    list-style: none;
    cursor: pointer;
    /*background-color: #161616;*/
    /*background: url("../../images/img.png");*/

}

.menubar:after {
    position: absolute;
    /*display: inline;*/
    color: #5381ff;
    width: 100px;
    font-weight: bold;
    font-family: "Microsoft YaHei";
    left: 90%;
    /*top:10px;*/
    opacity: 0;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
}

.menubar:hover::after {
    left: 110%;
    opacity: 1;
}

.left ul > li:first-child {
    background: 13px 0 url("../../images/iconfont-xiangzuo.png") no-repeat;
    zoom: 0.8;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
}

.transform180 {
    -moz-transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

/*.left ul>li:nth-child(2){*/
/*}*/
.left ul .edit {
    background: 10px 0 url("../../images/iconfont-bianji.png") no-repeat;
    zoom: 0.8;
}

.edit:after {
    content: "编辑";
}

.left ul .addimg {
    background: 10px 0 url("../../images/iconfont-tupian.png") no-repeat;
    zoom: 0.8;
}

.addimg:after {
    content: "添加图片";
}

.left ul .scrollswitchopen {
    background: 10px 0 url("../../images/iconfont-iconfont95.png") no-repeat;
    zoom: 0.8;
}

.scrollswitchopen:after {
    content: "已开启预览页面滚动到底部";
}

.left ul .scrollswitchclose {
    background: 10px 0 url("../../images/iconfont-iconfont94.png") no-repeat;
    zoom: 0.8;
}

.scrollswitchclose:after {
    content: "已关闭阅览页面自动滚动";
}

.left ul .send {
    background: 10px 0 url("../../images/iconfont-fasong.png") no-repeat;
    zoom: 0.8;
}

.left ul .delete {
    background: 10px 0 url("../../images/iconfont-shanchu.png") no-repeat;
    zoom: 0.8;
}

.delete:after {
    content: "删除";
}

.send:after {
    content: "提交";
}

.left ul .news {
    background: 10px 0 url("../../images/iconfont-xinwenzhongxin.png") no-repeat;
    zoom: 0.8;
}

.news:after {
    content: "新闻";
}

.left ul .github {
    background: 8px 0 url("../../images/iconfont-github.png") no-repeat;
    zoom: 0.8;
}

.github:after {
    content: "我的Github";
}

.left ul .coding {
    display: none;
    background: 5px 0 url("../../images/coding.png") no-repeat;
    height: 40px;
    zoom: 0.7;
}

.coding:after {
    content: "我的coding";
}

.left ul .weibo {
    background: 10px 0 url("../../images/iconfont-xinlangweibo.png") no-repeat;
    zoom: 0.8;
}

.weibo:after {
    content: "我的微博";
}

.left ul .tag {
    background: 10px 0 url("../../images/iconfont-biaoqian.png") no-repeat;
    zoom: 0.8;
}

.tag:after {
    content: "标签"
}

.left ul .hide {
    display: none;
}

/*.left ul .sendimg {*/
/*background-position:-299px 604px;*/
/*}*/
/*.left ul .sendimg {*/
/*background-position: -200px 0;*/
/*}*/
/*.left ul .sendimg*/
#profilePhotoFileUpload {
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

#writepage {
    height: 100%;
    width: 97%;
    left: 3%;
    position: absolute;
    overflow: hidden;
}

#area {
    position: fixed;
    left: 3%;
    height: 100%;
    width: 47%;
    border-width: 0 1px 0 0;
    resize: none;
    outline: none
}

#writepage > div {
    margin-left: 48.5%;
    width: 51.5%;
    height: 100%;
    /*float:left;*/
    padding: 10px 15px;
    overflow: auto;
}

#content div, #article_content div {
    /*display: inline-block;*/
    /*margin:0 auto;*/
    text-align: center;
}

/*在初始化的时候ul和li失去了默认样式，在这里要加上，文章显示时正常*/
#content ul li {
    margin-left: 15px;
}

/*在初始化的时候ul和li失去了默认样式，在这里要加上*/
#article_content ul li {
    margin-left: 20px;
}

#content p {
    line-height: 30px;
    font-family: "Microsoft YaHei";
}

#article_content {
    padding: 100px 100px;
    font-family: "Microsoft YaHei";
    font-size: 15px;
    line-height: 25px;
}

#content blockquote, #article_content blockquote {
    border-left: 5px solid #161616;
}

/*虎扑新闻*/
#hupunba {
    padding: 10px;
    text-align: center;
}

#hupunba ul {
    /*display: inline-block;*/
}

.newslist {
    list-style: none;
    padding: 5px;
    height: 300px;
    width: 300px;
    /*border:1px red solid;*/
    /*float: left;*/
    display: inline-block;
}

.card, .img-title {
    height: 100%;
    width: 100%;
    position: relative;
}

.img-title img {
    height: 100%;
    width: 100%;
    z-index: 1;
}

.img-title-blur {
    -webkit-filter: blur(5px); /* Chrome, Opera */
    -moz-filter: blur(5px);
    -ms-filter: blur(5px);
    filter: blur(5px);
}

/*这里要做渐变*/
.mask {
    position: absolute;
    height: 50%;
    width: 100%;
    top: 50%;
    z-index: 99;
    background-color: #000000;
    /*opacity: 0.6;*/
    /*background: -webkit-linear-gradient(red, blue); *//* Safari 5.1 - 6.0 */
    /*background: -o-linear-gradient(red, blue); *//* Opera 11.1 - 12.0 */
    /*background: -moz-linear-gradient(red, blue); *//* Firefox 3.6 - 15 */
    /*background: linear-gradient(red, blue); *//* 标准的语法 */
    background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0), rgb(0, 0, 0)); /* Safari 5.1 - 6.0 */
    background: -o-linear-gradient(bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1)); /* Opera 11.1 - 12.0 */
    background: -moz-linear-gradient(bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1)); /* Firefox 3.6 - 15 */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1)); /* 标准的语法（必须放在最后） */
    transition: all .1s ease;
    -moz-transition: all .1s ease;
    -webkit-transition: all .1s ease;
    -o-transition: all .1s ease;
}

.mask-slideup {
    height: 100%;
    top: 0;
}

.news-title {
    font-family: "Microsoft YaHei";
    font-size: 20px;
    color: #ffffff;
    opacity: 1;
    display: block;
}

.news-title-hide {
    display: none;
}

.news-summary {
    position: absolute;
    height: 30%;
    width: 100%;
    top: 70%;
    z-index: 99;
    background-color: transparent;
    padding: 15px;
    opacity: 1;
    font-family: "Microsoft YaHei";
    font-size: 20px;
    color: #ffffff;
    text-align: center;
    transition: all .6s ease;
    -moz-transition: all .6s ease;
    -webkit-transition: all .6s ease;
    -o-transition: all .6s ease;
}

.news-summary p {
    cursor: Default;
}

.summary-slideup {
    opacity: 1;
    height: 100%;
    top: 0px;
}

.news-summary-title {
    /*height: 20%;*/
    text-align: left;
    padding: 5px 5px 0 5px;
    margin-bottom: 0px;
}

.news-summary-content {
    /*height: 50%;*/
    font-size: 15px;
    text-align: left;
    overflow: hidden
}

.news-summary-info {
    /*height: 30%*/
    margin: 0;
}

hr {
    margin: 5px;
    padding: 0;
}

.news-summary-info span {
    font-size: 10px;
    padding: 0px;
}

#hupunba {
    text-align: center;
    /*position: fixed;*/
}

/*点击图片弹出内容*/
#news-content {
    position: fixed;
    overflow-y: scroll;
    top: 0;
    left: 23%;
    height: 100%;
    width: 77%;
    text-align: center;
    background-color: #000000;
    opacity: 0.999;
    z-index: 100;
}

.artical-content-read div {
    width: 660px;
}

.artical-content-read img {

}

.comfirm-yes {
    height: 60px;
    width: 60px;
    position: fixed;
    background-color: red;
    border-radius: 50px;
    top: 10px;
    left: 4%;
    text-align: center;
    z-index: 3;
    display: none;
}

.comfirm-yes i {
    display: inline-block;
    height: 32px;
    width: 32px;
    margin-top: 14px;
    background: url("../../images/iconfont-cuowu.png") no-repeat;
}

.comfirm-no {
    height: 60px;
    width: 60px;
    position: fixed;
    background-color: #008000;
    border-radius: 50px;
    top: 100px;
    left: 4%;
    text-align: center;
    z-index: 3;
    display: none;
}

.comfirm-no i {
    display: inline-block;
    height: 32px;
    width: 32px;
    margin-top: 14px;
    background: url("../../images/iconfont-duigou.png") no-repeat;
}